<template>
    <div class="entertainment"> 
        <Post v-for="(post,index) in list" :key="index" :post="post" :isGroup='true' v-lazy="post"/>
    </div>
</template>

<script>
import Post from '../common/post/Post.vue'
import axios from 'axios'
export default {
    name:'Entertainment',
    components:{
        Post
    },
    data() {
        return {
            list:[
                {
                    bodyId: 34,
                    classname: "交流圈子",
                    collection: 147,
                    content: "新开的轰趴馆，多种主题多种风格，设施一应俱全，想来体验的同学赶紧预约啊！",
                    img: "https://img2.baidu.com/it/u=3059229641,3715346038&fm=253&fmt=auto&app=138&f=JPEG?w=600&h=400",
                    imgs: `https://img2.baidu.com/it/u=2974861290,3830719471&fm=253&fmt=auto&app=138&f=JPEG?w=499&h=382;
                    https://img0.baidu.com/it/u=2916531312,1183294962&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281;
                    https://img2.baidu.com/it/u=118213691,2122769821&fm=253&fmt=auto&app=138&f=JPEG?w=640&h=428
                    `,
                    nickname: "轰趴馆",
                    praise: 294,
                    state: 0,
                    time: "2022-02-28 19:45:31",
                    userId: 11,
                },
                {
                    bodyId: 34,
                    classname: "交流圈子",
                    collection: 123,
                    content: "这个猫咖太nice了，里面的猫特别可爱",
                    img: "https://img1.baidu.com/it/u=931545919,4030748642&fm=253&fmt=auto&app=138&f=JPEG?w=306&h=459",
                    imgs: `https://img0.baidu.com/it/u=2086175152,1604968165&fm=253&fmt=auto&app=138&f=JPEG?w=667&h=500;
                    https://img1.baidu.com/it/u=724138821,4192858272&fm=253&fmt=auto&app=138&f=JPEG?w=684&h=500;
                    https://img1.baidu.com/it/u=747836560,3831912860&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=422;
                    https://img0.baidu.com/it/u=232902395,866520041&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500;
                    https://img0.baidu.com/it/u=1868496411,3009714148&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=375;
                    https://img0.baidu.com/it/u=3718808266,1893899096&fm=253&fmt=auto&app=138&f=JPEG?w=667&h=500
                    `,
                    nickname: "猫咪爱好者",
                    praise: 2264,
                    state: 0,
                    time: "2022-02-28 19:45:31",
                    userId: 11,
                },
                {
                    bodyId: 34,
                    classname: "交流圈子",
                    collection: 123,
                    content: "喜欢洛阳的山水，喜欢洛阳的古迹",
                    img: "https://img1.baidu.com/it/u=2893097018,2011170698&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=333",
                    imgs: `https://img1.baidu.com/it/u=1071922729,3717722419&fm=253&fmt=auto&app=138&f=JPG?w=667&h=500;
                    https://img0.baidu.com/it/u=3922208103,614603053&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500;
                    http://t13.baidu.com/it/u=3094588685,1763449540&fm=224&app=112&f=JPEG?w=500&h=500;
                    https://img1.baidu.com/it/u=987745453,3297694288&fm=253&fmt=auto&app=138&f=JPEG?w=697&h=500;
                    https://img2.baidu.com/it/u=874292007,1894845220&fm=253&fmt=auto&app=138&f=JPEG?w=640&h=422;
                    https://img0.baidu.com/it/u=867771150,407548360&fm=253&fmt=auto&app=138&f=JPEG?w=649&h=440;
                    https://img1.baidu.com/it/u=525735700,1565608400&fm=253&fmt=auto&app=138&f=JPEG?w=700&h=445;
                    https://img1.baidu.com/it/u=365845073,2787095952&fm=253&fmt=auto&app=138&f=JPEG?w=891&h=500;
                    https://img2.baidu.com/it/u=3256215424,2959022168&fm=253&fmt=auto?w=640&h=480
                    `,
                    nickname: "洛阳秋风",
                    praise: 2264,
                    state: 0,
                    time: "2022-02-28 19:45:31",
                    userId: 11,
                },
            ]
        }
    },
    props:['post'],
    // mounted() {
    //     axios({
    //         url:'/body/findSuch',
    //         method:'get',
    //         params:{
    //             classsname:'娱乐',
    //             // userId:1//默认的用户id
    //         }
    //     }).then(data=>{
    //         this.list = data.data.data
    //         console.log(data)
    //     }).catch(err=>{
    //         console.log(err)
    //     })
    // },
}
</script>

<style>
.entertainment{
    background-color: #fafafa;
}
</style>